// 组织管理 加载表单配置
import * as formMods from '@/components/ivew_conf/organization/form_mod_conf'
import {deepCopy} from '@/utils/tools'

function buildStoreMethod(key:formInf.storeMethod):formInf.storeMethod{
    return key;
}

const personal = deepCopy(formMods.personal);
const department = deepCopy(formMods.department);

 
 Object.assign(department, {

    propsData: {
        data: {
            storePath: 'organizationStore/currentLoadFormData',
            storeMethod: buildStoreMethod('state')
        },
        mods: {
            storePath: 'organizationStore/currentLoadFormMods',
            storeMethod: buildStoreMethod('state')
        }
       
    }
     
 })


 Object.assign(personal, {

    propsData: {
        data: {
            storePath: 'organizationStore/currentLoadFormData',
            storeMethod: buildStoreMethod('state')
        },
        mods: {
            storePath: 'organizationStore/currentLoadFormMods',
            storeMethod: buildStoreMethod('state')
        }
       
    }
     
 })


 export {

    department,
    personal

 }